package com.pig4cloud.pigx.contract.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 调整仓位杠杆DTO
 *
 * @date 2022/9/2 14:52
 */
@Data
public class AppContractMultipleChangeDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户id
	 */
	@ApiModelProperty(value = "用户id", hidden = true)
	private Long userId;

	/**
	 * 币对id
	 */
	@ApiModelProperty(value = "币对id", required = true)
	@NotNull(message = "数据异常，symbolId为空")
	private Long symbolId;

	/**
	 * 倍数
	 */
	@ApiModelProperty(value = "倍数", required = true)
	@NotNull(message = "数据异常，multiple为空")
	@Min(value = 1, message = "数据异常，multiple不能小于1")
	private Integer multiple;
}
